<?php
@session_start();
if (isset($_SESSION['user']) && isset($_SESSION['pass'])) {
?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title></title>
            
               
        </head>
        <body>
        <?php
        echo "xin chào: " . $_SESSION['user'] . "!";
        ?>
        <a href="logout.php">Đăng xuất</a>
        <br/>
        <a href="add_product.php">thêm sản phẩm</a>
<!--        <fieldset>
            <legend>Thêm sản phẩm</legend>
            <form action="upload.php" method="post" enctype="multipart/form-data">
            name:<input type="text" name="pro1name"/><br/>
            description:<input cols="10" rows="5" name="pro1desc"/><br/>
            price:<input type="text" name="pro1price"/><br/>
            thump:<input type="file" name="pro1thump"/><br/>
            images:<input type="file" name="img[]" multiple=""/><br/>
            category:<input type="text" name="pro1cat"/><br/>
            <input type="submit" name="btnSubmit" value="Upload"/>
            </form>
        </fieldset>-->
    </body>
</html>
<?php
    } 
    else {
        header("location:login.php");
    }
?>